package com.ruibang.glass.equipment.entity.device;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@ApiModel
@TableName(value = "g_equipment_boiler_info")
/**
 * 锅炉
 */
public class BoilerInfo extends BaseEntity implements Serializable {
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "序号")
    private String sequenceNumber;
    @ApiModelProperty(value = "使用单位")
    private String usingUnit;
    @ApiModelProperty(value = "设备名称")
    private String boilerName;
    @ApiModelProperty(value = "规格型号")
    private String specificationModel;
    @ApiModelProperty(value = "制造厂")
    private String manufacturer;
    @ApiModelProperty(value = "制造时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate manufactureTime;
    @ApiModelProperty(value = "安装地点")
    private String installationLocation;
    @ApiModelProperty(value = "改造变动情况")
    private String renovationChange;
    @ApiModelProperty(value = "上次内检时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate lastInspectionTime;
    @ApiModelProperty(value = "下次内检时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate nextInspectionTime;
    @ApiModelProperty(value = "检验报告编号")
    private String inspectionReportNumber;
    @ApiModelProperty(value = "注册代码")
    private String registrationCode;
    @ApiModelProperty(value = "使用证编号")
    private String useCertificateNumber;
    @ApiModelProperty(value = "状态 0:运行,1:停机")
    private String status;
    @ApiModelProperty(value = "是否删除(1：是 0：否)")
    @TableLogic
    private String isDelete;
}
